#define _CRT_SECURE_NO_WARNINGS 1
#include"Seqlist.h"

void test1()
{
	SL sl;
	SeqListInit(&sl);
	SeqListPushBack(&sl, 1);
	SeqListPushBack(&sl, 2);
	SeqListPushBack(&sl, 3);
	SeqListPushBack(&sl, 4);
	SeqListPushBack(&sl, 5);
	SeqListPrint(&sl);
	SeqListPopBack(&sl);
	SeqListPopBack(&sl);
	SeqListPopBack(&sl);
	SeqListPopBack(&sl);
	SeqListPrint(&sl);


}

void test2()
{

	SL sl;
	SeqListInit(&sl);
	SeqListPushFront(&sl, 1);
	SeqListPushFront(&sl, 2);
	SeqListPushFront(&sl, 3);
	SeqListPushFront(&sl, 4);
	SeqListPrint(&sl);
	//SeqListPopFront(&sl);
	//SeqListPopFront(&sl);
	//SeqListPopFront(&sl);
	//SeqListPopFront(&sl);
	//SeqListPopFront(&sl) 
	//SeqListFind(&sl, 3);
	printf("%d \n", SeqListFind(&sl, 3));
	SeqListInsert(&sl, SeqListFind(&sl, 3), 6);
	SeqListPrint(&sl);
	SeqListErase(&sl, SeqListFind(&sl, 3));
	SeqListPrint(&sl);




}
int main()
{
	//test1();
	test2();

	return 0;
}